<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      table {
        border-spacing: 0;
        border-collapse: collapse;
        table-layout: auto;
        width: 600px;
      }
      td,
      th {
        border: 1px solid blue;
      }
    </style>
  </head>
  <body>
    <table>
      <thead>
        <th></th>
        <th>小红</th>
        <th>小明</th>
        <th>小小</th>
      </thead>
      <tbody>
        <tr>
          <th>语文</th>
          <td>11</td>
          <td>22</td>
          <td>33</td>
        </tr>
        <tr>
          <th>数学</th>
          <td>11</td>
          <td>22</td>
          <td>33</td>
        </tr>
        <tr>
          <th>英语</th>
          <td>11</td>
          <td>22</td>
          <td>33</td>
        </tr>
      </tbody>
      <tfoot>
        <tr>
          <th>合计</th>
          <td>11</td>
          <td>22</td>
          <td>33</td>
        </tr>
      </tfoot>
    </table>
  </body>
</html>
